-- GENERATED SPELL FOR [Shadowmoon Reaver] --


function spell0_22879(pUnit, Event) --@Spell Absorption,Self--
pUnit:FullCastSpellOnTarget(41034,pUnit)
pUnit:RegisterEvent('Sorts_22879', 15000, 1)
end

function Sorts_22879(pUnit, Event)
local choix_sorts_22879 = math.random(0, 0)
if choix_sorts_22879 == 0 then
pUnit:RegisterEvent('spell0_22879', 1, 1)
end
end

function mob22879_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22879', math.random(1500, 3000), 1)
end

function mob22879_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22879_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22879_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22879, 1, 'mob22879_Action')
RegisterUnitEvent(22879, 2, 'mob22879_Leave')
RegisterUnitEvent(22879, 3, 'mob22879_Kill')
RegisterUnitEvent(22879, 4, 'mob22879_Die')
